Optimal. Leaf size=64 \[ -\frac {b p}{4 a x^2}-\frac {b^2 p \log (x)}{2 a^2}+\frac {b^2 p \log \left (a+b x^2\right )}{4 a^2}-\frac {\log \left (c \left (a+b x^2\right )^p\right )}{4 x^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 64, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {2504, 2442, 46}
\begin {gather*} \frac {b^2 p \log \left (a+b x^2\right )}{4 a^2}-\frac {b^2 p \log (x)}{2 a^2}-\frac {\log \left (c \left (a+b x^2\right )^p\right )}{4 x^4}-\frac {b p}{4 a x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rule 2442
Rule 2504
Rubi steps
\begin {align*} \int \frac {\log \left (c \left (a+b x^2\right )^p\right )}{x^5} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {\log \left (c (a+b x)^p\right )}{x^3} \, dx,x,x^2\right )\\ &=-\frac {\log \left (c \left (a+b x^2\right )^p\right )}{4 x^4}+\frac {1}{4} (b p) \text {Subst}\left (\int \frac {1}{x^2 (a+b x)} \, dx,x,x^2\right )\\ &=-\frac {\log \left (c \left (a+b x^2\right )^p\right )}{4 x^4}+\frac {1}{4} (b p) \text {Subst}\left (\int \left (\frac {1}{a x^2}-\frac {b}{a^2 x}+\frac {b^2}{a^2 (a+b x)}\right ) \, dx,x,x^2\right )\\ &=-\frac {b p}{4 a x^2}-\frac {b^2 p \log (x)}{2 a^2}+\frac {b^2 p \log \left (a+b x^2\right )}{4 a^2}-\frac {\log \left (c \left (a+b x^2\right )^p\right )}{4 x^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 56, normalized size = 0.88 \begin {gather*} \frac {1}{4} b p \left (-\frac {1}{a x^2}-\frac {2 b \log (x)}{a^2}+\frac {b \log \left (a+b x^2\right )}{a^2}\right )-\frac {\log \left (c \left (a+b x^2\right )^p\right )}{4 x^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.21, size = 198, normalized size = 3.09
method | result | size |
risch | \(-\frac {\ln \left (\left (b \,x^{2}+a \right )^{p}\right )}{4 x^{4}}-\frac {4 b^{2} p \ln \left (x \right ) x^{4}-2 b^{2} p \ln \left (-b \,x^{2}-a \right ) x^{4}+i \pi \,a^{2} \mathrm {csgn}\left (i \left (b \,x^{2}+a \right )^{p}\right ) \mathrm {csgn}\left (i c \left (b \,x^{2}+a \right )^{p}\right )^{2}-i \pi \,a^{2} \mathrm {csgn}\left (i \left (b \,x^{2}+a \right )^{p}\right ) \mathrm {csgn}\left (i c \left (b \,x^{2}+a \right )^{p}\right ) \mathrm {csgn}\left (i c \right )-i \pi \,a^{2} \mathrm {csgn}\left (i c \left (b \,x^{2}+a \right )^{p}\right )^{3}+i \pi \,a^{2} \mathrm {csgn}\left (i c \left (b \,x^{2}+a \right )^{p}\right )^{2} \mathrm {csgn}\left (i c \right )+2 a b p \,x^{2}+2 \ln \left (c \right ) a^{2}}{8 a^{2} x^{4}}\) | \(198\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 54, normalized size = 0.84 \begin {gather*} \frac {1}{4} \, b p {\left (\frac {b \log \left (b x^{2} + a\right )}{a^{2}} - \frac {b \log \left (x^{2}\right )}{a^{2}} - \frac {1}{a x^{2}}\right )} - \frac {\log \left ({\left (b x^{2} + a\right )}^{p} c\right )}{4 \, x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 58, normalized size = 0.91 \begin {gather*} -\frac {2 \, b^{2} p x^{4} \log \left (x\right ) + a b p x^{2} + a^{2} \log \left (c\right ) - {\left (b^{2} p x^{4} - a^{2} p\right )} \log \left (b x^{2} + a\right )}{4 \, a^{2} x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 3.08, size = 83, normalized size = 1.30 \begin {gather*} \begin {cases} - \frac {\log {\left (c \left (a + b x^{2}\right )^{p} \right )}}{4 x^{4}} - \frac {b p}{4 a x^{2}} - \frac {b^{2} p \log {\left (x \right )}}{2 a^{2}} + \frac {b^{2} \log {\left (c \left (a + b x^{2}\right )^{p} \right )}}{4 a^{2}} & \text {for}\: a \neq 0 \\- \frac {p}{8 x^{4}} - \frac {\log {\left (c \left (b x^{2}\right )^{p} \right )}}{4 x^{4}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 132 vs.
\(2 (56) = 112\).
time = 4.40, size = 132, normalized size = 2.06 \begin {gather*} -\frac {\frac {b^{3} p \log \left (b x^{2} + a\right )}{{\left (b x^{2} + a\right )}^{2} - 2 \, {\left (b x^{2} + a\right )} a + a^{2}} - \frac {b^{3} p \log \left (b x^{2} + a\right )}{a^{2}} + \frac {b^{3} p \log \left (b x^{2}\right )}{a^{2}} + \frac {{\left (b x^{2} + a\right )} b^{3} p - a b^{3} p + a b^{3} \log \left (c\right )}{{\left (b x^{2} + a\right )}^{2} a - 2 \, {\left (b x^{2} + a\right )} a^{2} + a^{3}}}{4 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.26, size = 56, normalized size = 0.88 \begin {gather*} \frac {b^2\,p\,\ln \left (b\,x^2+a\right )}{4\,a^2}-\frac {\ln \left (c\,{\left (b\,x^2+a\right )}^p\right )}{4\,x^4}-\frac {b^2\,p\,\ln \left (x\right )}{2\,a^2}-\frac {b\,p}{4\,a\,x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________